<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h3>旧版第2题</h3>
<h2>插入</h2><br>
<form action="q2Add" method="post">
    名字：<input id="name" name="name" type="text"><br>
    电话：<input id="telephone" name="telephone" type="text"><br>
    性别：<label><input name="sex" type="radio" value="男" />男 </label>
    <label><input name="sex" type="radio" value="女" />女 </label><br>
    爱好：<label><input name="hobby[0].name" type="checkbox" value="唱歌" />唱歌 </label>
    <label><input name="hobby[1].name" type="checkbox" value="跳舞" />跳舞 </label>
    <label><input name="hobby[2].name" type="checkbox" value="画画" />画画 </label><br>

    <button type="submit">添加</button>
    <br>
</form>

<h2>查询</h2><br>
<form action="q2Select" method="post">
    查询编号:<input id="sid" name="id" type="text"><br>
    <button type="submit">查询</button>
    <br>
</form>

<form action="q2Delete" method="post">
    删除编号:<input id="did" name="id" type="text"><br>
    <button type="submit">删除</button>
    <br>
</form>

<h2>修改</h2><br>
<form action="q2Update" method="post">
    ID：<input name="id" type="text"><br>
    名字：<input id="uname" name="name" type="text"><br>
    电话：<input id="utelephone" name="telephone" type="text"><br>
    性别：<label><input name="sex" type="radio" value="男" />男 </label>
    <label><input name="sex" type="radio" value="女" />女 </label><br>
    爱好：<label><input name="hobby[0].name" type="checkbox" value="唱歌" />唱歌 </label>
    <label><input name="hobby[1].name" type="checkbox" value="跳舞" />跳舞 </label>
    <label><input name="hobby[2].name" type="checkbox" value="画画" />画画 </label><br>

    <button type="submit">添加</button>
    <br>
</form>

</body>
</html>
